.class public Lcom/esfile/screen/recorder/videos/edit/i;
.super Ljava/lang/Object;
.source "VideoEditHelper.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/i$b;
    }
.end annotation


# direct methods
.method static synthetic a(Landroid/app/Activity;Ljava/lang/String;Les/cd;Z)V
    .locals 0

    .line 4
    invoke-static {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/videos/edit/i;->c(Landroid/app/Activity;Ljava/lang/String;Les/cd;Z)V

    return-void
.end method

.method private static a(Landroid/content/Context;Les/cd;Lcom/esfile/screen/recorder/videos/edit/l;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Lcom/esfile/screen/recorder/videos/edit/i$b;Lcom/esfile/screen/recorder/media/a$g;IZ)V
    .locals 11
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p1    # Les/cd;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Lcom/esfile/screen/recorder/videos/edit/l;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .param p4    # Lcom/esfile/screen/recorder/videos/edit/i$b;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    move/from16 v0, p6

    if-eqz v0, :cond_5

    const/4 v1, 0x3

    if-ne v0, v1, :cond_1

    if-eqz p7, :cond_0

    .line 12
    invoke-static {}, Les/qc;->a()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 13
    invoke-static {p0}, Les/s6;->a(Landroid/content/Context;)Les/s6;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Les/s6;->a(I)V

    .line 14
    invoke-static {p0}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->getInstance(Landroid/content/Context;)Landroidx/localbroadcastmanager/content/LocalBroadcastManager;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    const-string v2, "com.esfile.screen.recorder.action.SAVE_LOCATION_CHANGED"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->sendBroadcast(Landroid/content/Intent;)Z

    move-object v0, p1

    move-object v1, p2

    move-object/from16 v2, p5

    .line 15
    invoke-virtual {p2, p1, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd;Lcom/esfile/screen/recorder/media/a$g;)I

    move-result v9

    const/4 v10, 0x0

    move-object v3, p0

    move-object v4, p1

    move-object v5, p2

    move-object v6, p3

    move-object v7, p4

    move-object/from16 v8, p5

    .line 16
    invoke-static/range {v3 .. v10}, Lcom/esfile/screen/recorder/videos/edit/i;->a(Landroid/content/Context;Les/cd;Lcom/esfile/screen/recorder/videos/edit/l;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Lcom/esfile/screen/recorder/videos/edit/i$b;Lcom/esfile/screen/recorder/media/a$g;IZ)V

    return-void

    .line 17
    :cond_0
    sget v0, Les/z4;->durec_cut_video_no_space:I

    invoke-static {v0}, Les/ec;->a(I)V

    goto :goto_0

    :cond_1
    const/4 v1, 0x5

    if-ne v0, v1, :cond_2

    .line 18
    sget v0, Les/z4;->durec_cut_video_no_space:I

    invoke-static {v0}, Les/ec;->a(I)V

    goto :goto_0

    :cond_2
    const/4 v1, 0x4

    if-ne v0, v1, :cond_3

    .line 19
    sget v0, Les/z4;->durec_cut_video_max_file_size_tip:I

    invoke-static {v0}, Les/ec;->a(I)V

    goto :goto_0

    .line 20
    :cond_3
    sget v0, Les/z4;->durec_common_video_fail:I

    invoke-static {v0}, Les/ec;->a(I)V

    :goto_0
    if-eqz p3, :cond_4

    .line 21
    invoke-virtual {p3}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->a()V

    .line 22
    :cond_4
    invoke-static {p4}, Lcom/esfile/screen/recorder/videos/edit/i;->d(Lcom/esfile/screen/recorder/videos/edit/i$b;)V

    :cond_5
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Les/cd;Lcom/esfile/screen/recorder/videos/edit/l;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Lcom/esfile/screen/recorder/videos/edit/i$b;)V
    .locals 10
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p1    # Ljava/lang/String;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Les/cd;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # Lcom/esfile/screen/recorder/videos/edit/l;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p4    # Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .param p5    # Lcom/esfile/screen/recorder/videos/edit/i$b;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 6
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    if-ne v0, v1, :cond_1

    if-eqz p4, :cond_0

    .line 7
    invoke-virtual {p4}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->d()V

    .line 8
    :cond_0
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/i$a;

    move-object v2, v0

    move-object v3, p5

    move-object v4, p4

    move-object v5, p0

    move-object v6, p1

    move-object v7, p2

    invoke-direct/range {v2 .. v7}, Lcom/esfile/screen/recorder/videos/edit/i$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/i$b;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Landroid/content/Context;Ljava/lang/String;Les/cd;)V

    .line 9
    invoke-virtual {p3, p2, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd;Lcom/esfile/screen/recorder/media/a$g;)I

    move-result v8

    const/4 v9, 0x1

    move-object v2, p0

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    move-object v6, p5

    move-object v7, v0

    .line 10
    invoke-static/range {v2 .. v9}, Lcom/esfile/screen/recorder/videos/edit/i;->a(Landroid/content/Context;Les/cd;Lcom/esfile/screen/recorder/videos/edit/l;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Lcom/esfile/screen/recorder/videos/edit/i$b;Lcom/esfile/screen/recorder/media/a$g;IZ)V

    return-void

    .line 11
    :cond_1
    new-instance p0, Ljava/lang/IllegalThreadStateException;

    const-string p1, "Please call me in UI thread!"

    invoke-direct {p0, p1}, Ljava/lang/IllegalThreadStateException;-><init>(Ljava/lang/String;)V

    throw p0
.end method

.method static synthetic a(Landroid/content/Context;Ljava/lang/String;Les/cd;Z)V
    .locals 0

    .line 3
    invoke-static {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/videos/edit/i;->b(Landroid/content/Context;Ljava/lang/String;Les/cd;Z)V

    return-void
.end method

.method static synthetic a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 2
    invoke-static {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/i;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/i$b;)V
    .locals 0

    .line 1
    invoke-static {p0}, Lcom/esfile/screen/recorder/videos/edit/i;->e(Lcom/esfile/screen/recorder/videos/edit/i$b;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/i$b;I)V
    .locals 0

    .line 5
    invoke-static {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/i;->b(Lcom/esfile/screen/recorder/videos/edit/i$b;I)V

    return-void
.end method

.method private static a(Les/cd$a;)[J
    .locals 5
    .param p0    # Les/cd$a;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 23
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 24
    iget-object v1, p0, Les/cd$a;->g:Les/cd$f;

    if-eqz v1, :cond_0

    iget-boolean v2, v1, Les/cd$f;->a:Z

    if-eqz v2, :cond_0

    .line 25
    iget-wide v1, v1, Les/cd$f;->b:J

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 26
    :cond_0
    iget-object v1, p0, Les/cd$a;->f:Les/cd$h;

    if-eqz v1, :cond_1

    iget-boolean v2, v1, Les/cd$h;->a:Z

    if-eqz v2, :cond_1

    .line 27
    iget-wide v1, v1, Les/cd$h;->b:J

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 28
    :cond_1
    iget-object v1, p0, Les/cd$a;->h:Les/cd$t;

    if-eqz v1, :cond_2

    iget-boolean v2, v1, Les/cd$t;->a:Z

    if-eqz v2, :cond_2

    .line 29
    iget-wide v1, v1, Les/cd$t;->b:J

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 30
    :cond_2
    iget-object p0, p0, Les/cd$a;->i:Les/cd$b;

    if-eqz p0, :cond_3

    iget-boolean v1, p0, Les/cd$b;->a:Z

    if-eqz v1, :cond_3

    .line 31
    iget-wide v1, p0, Les/cd$b;->b:J

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p0

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 32
    :cond_3
    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result p0

    if-nez p0, :cond_4

    .line 33
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result p0

    new-array v1, p0, [J

    const/4 v2, 0x0

    :goto_0
    if-ge v2, p0, :cond_5

    .line 34
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Long;

    invoke-virtual {v3}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    aput-wide v3, v1, v2

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_4
    const/4 v1, 0x0

    :cond_5
    return-object v1
.end method

.method static synthetic b(Landroid/app/Activity;Ljava/lang/String;Les/cd;Z)V
    .locals 0

    .line 1
    invoke-static {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/videos/edit/i;->d(Landroid/app/Activity;Ljava/lang/String;Les/cd;Z)V

    return-void
.end method

.method private static b(Landroid/content/Context;Ljava/lang/String;Les/cd;Z)V
    .locals 11

    .line 11
    iget-object v0, p2, Les/cd;->m:Les/cd$a;

    if-eqz v0, :cond_0

    iget-boolean v1, v0, Les/cd$a;->a:Z

    if-eqz v1, :cond_0

    .line 12
    iget-wide v5, v0, Les/cd$a;->b:J

    .line 13
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/i;->a(Les/cd$a;)[J

    move-result-object v7

    .line 14
    iget-object p2, p2, Les/cd;->m:Les/cd$a;

    iget-object v8, p2, Les/cd$a;->c:Ljava/lang/String;

    .line 15
    iget-object v9, p2, Les/cd$a;->d:Ljava/lang/String;

    .line 16
    iget-object v10, p2, Les/cd$a;->e:Ljava/lang/String;

    move-object v2, p0

    move-object v3, p1

    move v4, p3

    invoke-static/range {v2 .. v10}, Lcom/esfile/screen/recorder/utils/h;->a(Landroid/content/Context;Ljava/lang/String;ZJ[JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 17
    :cond_0
    invoke-static {p0, p1, p3}, Lcom/esfile/screen/recorder/utils/h;->b(Landroid/content/Context;Ljava/lang/String;Z)V

    :goto_0
    return-void
.end method

.method private static b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 3
    invoke-static {p1, p2}, Les/bd;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    invoke-virtual {v0}, Les/t6;->b()V

    .line 5
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    const-string v1, "attach_classname_"

    invoke-virtual {v0, p1, v1}, Les/v6;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 6
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    const-string v1, "attach_pkgname_"

    invoke-virtual {v0, p1, v1}, Les/v6;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 7
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    const-string v1, "attach_appname_"

    invoke-virtual {v0, p1, v1}, Les/v6;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    const-string v1, "attach_app_first"

    invoke-virtual {v0, p1, p2, v1}, Les/v6;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    const-string v1, "attach_app_last"

    invoke-virtual {v0, p1, p2, v1}, Les/v6;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 10
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object p0

    invoke-virtual {p0}, Les/t6;->c()V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/i$b;)V
    .locals 0

    .line 2
    invoke-static {p0}, Lcom/esfile/screen/recorder/videos/edit/i;->f(Lcom/esfile/screen/recorder/videos/edit/i$b;)V

    return-void
.end method

.method private static b(Lcom/esfile/screen/recorder/videos/edit/i$b;I)V
    .locals 0

    if-eqz p0, :cond_0

    .line 18
    invoke-interface {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/i$b;->a(I)V

    :cond_0
    return-void
.end method

.method private static c(Landroid/app/Activity;Ljava/lang/String;Les/cd;Z)V
    .locals 0

    return-void
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/i$b;)V
    .locals 0

    .line 1
    invoke-static {p0}, Lcom/esfile/screen/recorder/videos/edit/i;->d(Lcom/esfile/screen/recorder/videos/edit/i$b;)V

    return-void
.end method

.method private static d(Landroid/app/Activity;Ljava/lang/String;Les/cd;Z)V
    .locals 0

    return-void
.end method

.method private static d(Lcom/esfile/screen/recorder/videos/edit/i$b;)V
    .locals 0

    if-eqz p0, :cond_0

    .line 1
    invoke-interface {p0}, Lcom/esfile/screen/recorder/videos/edit/i$b;->a()V

    :cond_0
    return-void
.end method

.method private static e(Lcom/esfile/screen/recorder/videos/edit/i$b;)V
    .locals 0

    if-eqz p0, :cond_0

    .line 1
    invoke-interface {p0}, Lcom/esfile/screen/recorder/videos/edit/i$b;->onStart()V

    :cond_0
    return-void
.end method

.method private static f(Lcom/esfile/screen/recorder/videos/edit/i$b;)V
    .locals 0

    if-eqz p0, :cond_0

    .line 1
    invoke-interface {p0}, Lcom/esfile/screen/recorder/videos/edit/i$b;->onSuccess()V

    :cond_0
    return-void
.end method
